package com.appsky.drift.api;

import com.appsky.drift.R;

import android.app.Application;
import android.os.Handler;

public class AppSkyApp extends Application {

	public UserInfo myInfo = new UserInfo();

	public Handler loginHandler = null;
	
	public Handler obtainMessageHandler = null;

	private String ip = "";

	@Override
	public void onCreate() {
		super.onCreate();
		ip = getString(R.string.server_ip);
		DLog.i("Application启动！");
	}

	private boolean loginState = false;

	/**
	 * 是否已登录
	 */
	public boolean isLogin() {
		return loginState;
	}

	public void setLoginState(boolean loginState) {
		this.loginState = loginState;
	}

	public String getIp() {
		return this.ip;
	}
	
	public void setIp(String str) {
		this.ip = str;
	}
}
